/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package agendadecontatostxt;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;

/**
 *
 * @author ingrid.parruda
 */
public class SalvaTxt {
    public void Salvar ()
    {
        FileOutputStream arquivo_out = null;
        ObjectOutputStream arquivo_stm = null;
        try
        {
            arquivo_out = new FileOutputStream("agendaContato.txt");
            arquivo_stm = new ObjectOutputStream(arquivo_out);
            arquivo_stm.writeObject(Operacoes.contacts);
            arquivo_stm.close();
        }
        catch (IOException ex){}
    }
}
